import axiosHttp from "../../http"

// 支付时跳转接口
async function payment(data) {
  console.log(data)
  return axiosHttp({
    url: "/pay/payment",
    method: "post",
    data,
  }).then((res) => {
    return res
  })
}

// 支付后的请求 成功or失败
async function payReslut(data) {
  console.log(data)
  return axiosHttp({
    url: "/pay/payreslut",
    method: "post",
    data,
  }).then((res) => {
    return res
  })
}

export default {
  payment,
  payReslut,
}
